package com.whub507.msgmanager.sso.context;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContextUser implements Serializable {

	private static final long serialVersionUID = 5497472699426762746L;

	// 用户ID
	private String userID;
	// 登录名
	private String userLoginName;
	// 姓名
	private String userName;
	// 邮箱
	private String email;
	// 单点登录身份令牌
	private String token;
	// 登录时，客户端IP
	private String ip;
	// 隶属域ID
	private String domainId;
	// 跨级访问时，标记跨级token
	private String crossToken;
	
	private List<String> roles;

	public List<String> getRoles() {
		return roles;
	}

	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

}
